﻿using System;
using System.Collections.Generic;
using System.Collections;
using System.Text;

namespace TTData
{
    public class Room
    {
        private Int32 _id;
        private String _name;
        private List<String> _listPlayer;
        private Boolean _isStarted;

        /// <summary>
        /// Create a new room
        /// </summary>
        public Room()
        {
            _listPlayer = new List<String>() ;
            _listPlayer.Add(null);
            _listPlayer.Add(null);
            _listPlayer.Add(null);
            _listPlayer.Add(null);
        }

        /// <summary>
        /// Create a new room with a specified name
        /// </summary>
        /// <param name="Name"></param>        
        public Room(String name)
        {
            _name = name;
            _listPlayer = new List<String>();
            _listPlayer.Add(null);
            _listPlayer.Add(null);
            _listPlayer.Add(null);
            _listPlayer.Add(null);
        }
      
        /// <summary>
        /// Gets or sets the id of the room
        /// </summary>        
        public Int32 ID
        {
            get
            {
                return _id;
            }
            set
            {
                _id = value;
            }
        }

        /// <summary>
        /// Gets or Sets the name of the room
        /// </summary>
        public String Name
        {
            get
            {
                return _name;
            }
            set
            {
                _name = value;
            }
        }

        public Boolean IsStarted
        {
            get
            {
                return _isStarted;
            }
            set
            {
                _isStarted = value;
            }
        }

        /// <summary>
        /// Gets or Sets the player list of the room
        /// </summary>
        public List<String> ListPlayer
        {
            get
            {
                return _listPlayer;
            }
            set
            {
                _listPlayer = value;
            }
        }
    }
}
